package org.csmzxy.class2333;
import java.util.Scanner;
public class example02 {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个三位数的整数:");
        int num = sc.nextInt();
        int n1 = num / 100;
        int n2 = num % 100 /10;
        int n3 = num % 10;
        if (num==(n1*n1*n1+n2*n2*n2+n3*n3*n3)){
            System.out.println("这是一个水仙花数");
        }
            else{
                System.out.println("这不是一个水仙花数");
            }

    }
}
